﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Oroboros.Save_Data
{
    public class CharacterStatsSaveData : INotifyPropertyChanged
    {
        private int _Finesse;
        private int _Power;
        private int _Smarts;
        private int _Speed;
        private int _Toughness;

        public int Finesse { get { return _Finesse; } set { Changed("Finesse"); _Finesse = value; } }
        public int Power { get { return _Power; } set { Changed("Power"); _Power = value; } }
        public int Smarts { get { return _Smarts; } set { Changed("Smarts"); _Smarts = value; } }
        public int Speed { get { return _Speed; } set { Changed("Speed"); _Speed = value; } }
        public int Toughness { get { return _Toughness; } set { Changed("Toughness"); _Toughness = value; } }

        public event PropertyChangedEventHandler PropertyChanged;
        public void Changed(string n)
        {
            if (PropertyChanged == null) return;
            if (!string.IsNullOrEmpty(n))
                PropertyChanged(this, new PropertyChangedEventArgs(n));
        }
    }
}
